package com.pf.commom.enums;

import lombok.Getter;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2021/8/27
 */
@Getter
public enum BaseResultEnum {

    SUCCESS(0, "调用成功"),
    FAIL(-1, "调用失败"),

    SYSTEM_ERROR(999999, "系统异常！"),
    PARAM_ERROR(10000, "参数异常");

    private Integer code;
    private String msg;

    BaseResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
